//
// Created by zhangJA on 2020/6/22.
//循环结构-while语句

#include <iostream>
using namespace std;
int main()
{
    int a=1,sum=0;
    while (a<=10)
    {
        sum+=a;//相当于sum=sum+a;
        a++;
    }
    cout<<"Sum="<<sum<<endl;
    return  0;
}